package org.lb.MarketingSystem.dao;

import java.util.List;

import org.lb.MarketingSystem.entity.Department;
import org.springframework.stereotype.Component;

@Component(value="departmenMapperDao")
public interface DepartmentMapperDao {
	//部门
	public String selectDepartmentNameByDerId(int departmentId); //根据部门id得到部门名字
	public void inesrtDepartment(Department department); //插入部门到部门表
	public void dropDepartment(String departmentId);   //根据ID删除部门表部门信息
	public List<Department> select_allDepartment();   //得到部门表所有的部门信息
	public void updateDepartment(Department department);  //修改部门表信息
	public Integer selectdepartmentIdByName(String departmentName);  //根据部门名称得到部门ID
	public List<Integer> selectUserIdIdById(Integer departmentId);    //根据部门ID得到所有用户ID
}
